import request from "../utils/request";

/**
 * 打款分单
 */
// 全部列表
export async function fetchPaymentAllList(params) {
    return await request.post('assignOrder/allList', params)
}

//  已办列表
export async function fetchPaymentHistoryList(params) {
    return await request.post('assignOrder/alreadyOfficeList', params)
}

//  待办列表
export async function fetchPaymentAgencyList(params) {
    return await request.post('assignOrder/needOfficeList', params)
}

//  失败原因
export async function fetchPaymentFailureReason(params) {
    return await request.get('assignOrder/failureReason', {params})
}

//  打款失败
export async function paymentOfflineFail(params) {
    return await request.post('assignOrder/offlineFail', params)
}

//  打款成功
export async function paymentOfflineSuccess(params) {
    return await request.post('assignOrder/offlineSuccess', params)
}

//  所搜分配调单
export async function paymentSearchTransfer(params) {
    return await request.post('assignOrder/searchTransfer', params)
}

//  所选分配调单
export async function paymentSelectTransfer(params) {
    return await request.post('assignOrder/selectTransfer', params)
}

//  调单列表
export async function fetchPaymentTransferList(params) {
    return await request.post('assignOrder/dispatchList', params)
}
